#ifndef TRANSFERFILE_H
#define TRANSFERFILE_H

#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <error.h>
#include <errno.h>
#include <stdio.h>

#define TRAIN_DATA_LEN 1000
typedef struct trian_s{
    int len;
    char data[TRAIN_DATA_LEN];
}train_t;

int transferFile(int netfd, char *filename);

#endif
